
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

/**
 * Process page abstraction
 */
typedef struct pag {
    int number; // Page number
    bool reference; // Main memory reference bit
    bool dirt; // Main memory dirt bit
    int accesses; // Accesses made to this page (read or write)
    int faults; // Page faults generated triyng to access this page
    int replaces; // Times this page was selected as 'victim'
    struct mem *address; // Address in the memory (invalid page if NULL)
} PAGE;


